﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="VIPCustomerExchangeView.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.VipMgr.VIPCustomerExchangeView" %>
<div class="pageContent">
	<form method="post" action="VipMgr/VIPCustomerExchangeView.aspx?ajaxmethod=ADD&CustExID=<%=CustExID %>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">            
            <h2 style=" padding:0px 0px 5px 6px; border-bottom:1px solid #B8D0D6;clear:both;">1.基本信息</h2>
                <p>
				    <label>经销商名称：</label>
				    <input name="AgentName" type="text"  readonly  value="<%=vipObj.AgentName %>" />
			    </p> 
                 <p>
				    <label>兑换日期：</label>
				    <input name="ExChangeDate" type="text"  readonly  value="<%=vipObj.ExChangeDate %>" />
			    </p> 
                <div class="divider"></div>
                <p>
				    <label>姓名：</label>
				    <input name="RealName" type="text" readonly  value="<%=vipObj.RealName %>" />
			    </p>                
                <p>
				    <label>联系方式：</label>
				    <input name="Tel" type="text" readonly  value="<%=vipObj.Tel %>" />
			    </p>
                <p>
				    <label>地址：</label>
				    <input name="Address" type="text" readonly  value="<%=vipObj.Address %>" />
			    </p>
                <div class="divider"></div>
                <p>
				    <label>VIP卡类型：</label>
                     <input name="VIPCardType" type="text" class="" readonly value="<%=vipObj.VIPCardType %>" />                   
			    </p>
                <p>
				    <label>VIP卡号：</label>
				    <input name="VIPCardNum" type="text"  readonly value="<%=vipObj.VIPCardNum %>" />
			    </p>
              <div class="divider"></div>
                <p>
				    <label>兑换积分：</label>
				    <input  type="text" class="" readonly value="<%=vipObj.TotalPoint %>" />
			    </p>
                 <p>
				    <label>相应金额：</label>
				    <input  type="text" class="" readonly value="<%=vipObj.TotalMoney %>" />
			    </p>
                <div class="divider"></div>
                 <p>
				    <label>备注 ：</label>
				    <input name="Remark" type="text" readonly class=""   value=<%=vipObj.Remark %>/>
			    </p> 
            
              <h2 style="clear:both; padding:5px; border-bottom:1px solid #B8D0D6; margin-bottom:5px; margin-top:15px; line-height:26px;">
                2.兑换明细               
              </h2>
              <div  style=" clear:both;">
                 <table id="VIPCustomerExchangeAdd_AddDetail" class="list" width="100%" >
                        <thead>
                            <tr>                
                                <th width="100" >物料号</th>
                                <th>名称</th>                
                                <th width="100">单价</th> 
                                <th width="120">数量</th>                                
                                <th>小计</th>
                                <th>所需积分</th> 
                                         
                            </tr>
                         </thead>
                         <tbody>
                         <asp:repeater id="rpDetail" runat="server" >
                          <ItemTemplate>
                             <tr >
				                <td><input type="text" name="" readonly value="<%# Eval("ItemCode") %>" /></td>
				                <td><input type="text" name="" readonly value="<%# Eval("ItemName") %>" /></td>
				                <td><input type="text" name="" readonly value="<%# Eval("Price") %>" /></td>
                                <td><input type="text" name="" readonly value="<%# Eval("Quantity") %>" /></td>
                                <td><input type="text" name=""readonly value="<%# Eval("LineTotal") %>" /></td>
                                <td><input type="text" name="" readonly value="<%# Eval("LinePoint") %>" /></td>			                    
			                </tr>
                            </ItemTemplate>
                           </asp:repeater>
                         </tbody>
                         </table>
               </div>
             <h2 style="clear:both; padding:5px; border-bottom:1px solid #B8D0D6; margin-bottom:5px; margin-top:15px; line-height:26px;">
                3.回访处理               
             </h2>
              <p>
				    <label>回访备注 ：</label>
				    <input name="IsVisit" type="checkbox" class="" value="true"   <%=vipObj.IsVisit?"checked":"" %>/>
			  </p>
                <p>
				    <label>回访日期 ：</label>
				    <input name="VisitDate" type="text" readonly class="date"   value="<%=vipObj.VisitDate==DateTime.MinValue?"":vipObj.VisitDate.ToString("yyyy-MM-dd") %>"/>
			  </p>
              <p>
				    <label>回访备注 ：</label>
				    <input name="VisitRemark" type="text"  class=""   value="<%=vipObj.VisitRemark %>"/>
			  </p> 
            
        </div>
		<div class="formBar">
			<ul>
                 <%if (HasPower(IHISCETeim.Web.Permission.VIP积分兑换_回访) )
                  {%>
				<li ><div class="buttonActive"><div class="buttonContent"><button type="submit" > 提 交 </button></div></div></li>
                <%} %>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>